import request from '@/utils/request'

// 获取回访管理订单列表数据
export function orderVisitList(query) {
  return request({
    url: '/ord/return/visit/order/list',
    method: 'get',
    params: query
  })
}

//获取回访管理详情列表数据
export function visitList(query) {
  return request({
    url: '/ord/return/visit/list/',
    method: 'get',
    params: query
  })
}

//通过ID获取回访管理详情列表数据
export function getVisit(id) {
  return request({
    url: '/ord/return/visit/get/' + id,
    method: 'get'
  })
}

// 新增回访记录
export function addVisit(data) {
  return request({
    url: '/ord/return/visit/save',
    method: 'post',
    data
  })
}
//删除回访记录
export function delVisit(ids) {
  return request({
    url: '/ord/return/visit/delete/' + ids,
    method: 'post'
  })
}
